scalar
converts its argument to a scalar. If no argument is
supplied, then 0 is returned. If the argument is a scalar, that
scalar is returned. If the argument is a matrix, the matrix must have
a single element, which is returned.
scalar
is provided for symmetry with the matrix
function. Functionally it is not required, since scalar
references to matrices are automatically converted to scalar
type.